import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/css/global.css'

// 导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// import 'quill/dist/quill.core.css'
// import 'quill/dist/quill.snow.css'
// import 'quill/dist/quill.bubble.css'

import moment from 'moment'
import MyHttpServer from '@/plugins/http'

Vue.config.productionTip = false

Vue.use(MyHttpServer)
Vue.use(VueQuillEditor)

// 注册全局时间格式处理的过滤器
Vue.filter('fmBaseDateStyle', value => {
  return moment(value * 1000).format('YYYY-MM-DD')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
